import request from "../request"
//轮播列表
function getBannerList(data){
    return request({
        url:"/be/admin/banners",
        method:"get",
        data
    })
}

//删除banner
function delBanner(data){
    return request({
        url:`/be/admin/banners/${data}`,
        method:"delete",
        // data
    })
}
//新增banner
function addBanner(data){
    return request({
        url:"/be/admin/banners",
        // url:"/develop/admin/banners",
        method:"post",
        data
    })
}
//产品列表
function goodsList(data){
    return request({
        url:"/be/admin/banners/options",
        method:"get",
        data
    })
}
//更新产品状态
function updataStatus(data){
    return request({
        url:"/be/admin/banners/status",
        method:"put",
        data,
        params:data
    })
}
//修改banner
function updataBanner(data){
    return request({
        url:"/be/admin/banners/update",
        method:"put",
        data,
        params:data
    })
}
//获取编辑banner详情
function bannerInfo(data){
    return request({
        url:"/be/admin/banners/banner",
        method:"get",
        data
    })
}

export default {
    getBannerList,
    delBanner,
    addBanner,
    goodsList,
    updataStatus,
    updataBanner,
    bannerInfo
}